package com.dirox.plugins.ao;

import com.atlassian.activeobjects.tx.Transactional;

import java.util.List;

@Transactional
public interface NoteService {
	Note add(String content, int priority);

	Note update(int id, String content, int priority);

	void delete(int id);
		
	List<Note> getAll();
	
	List<Note> getNotes(int priority);

	List<Note> getMemos();
	
//	List<User> getUserNotTagged(int note_id);
	
	void tagNoteToUser(Note note, com.atlassian.crowd.embedded.api.User user);
	
	void untagNoteToUser(int noteId, String userName);

	void tagNoteToIssue(Note note, com.atlassian.jira.issue.Issue issue);

	// Add function
	Note getNote(int id);
}
